package impl;

import com.github.javafaker.Faker;

import java.util.Locale;
import java.util.Random;

public class Imol_1 {

    private static Random rd = new Random();
    Faker faker = new Faker(Locale.CHINA);

    public String addaccess() {
        String[] AC = {"WI-FI","4G","3G","2G"};
        return AC[rd.nextInt(AC.length)];
    }


    public String addapp_version() {
        String[] APP_V = {"4.1.2","5.1.3","2.4.4","3.1.6","4.3.3"};
        return APP_V[rd.nextInt(APP_V.length)];
    }


    public String addbattery() {
        String s="";
        s+=rd.nextInt(100)+"%";
        return s;
    }


    public String addbrand() {
        String[] BRD = {"xiaomi","OPPO","vivo","Redmi","HUAWEI","HONRO"};
        return BRD[rd.nextInt(BRD.length)];

    }


    public String addchannel() {
        String[] CHA = {"优亿","安机","十字猫","开奇","天空","泡椒","万普"};
        return CHA[rd.nextInt(CHA.length)];
    }


    public String adddevice_model() {
        String[] DEV = {"X20","X9","A93","k30","v40","11pro","P40","Nova5"};
        return DEV[rd.nextInt(DEV.length)];
    }


    public Long addfirst_launch() {
        return faker.date().birthday().getTime()/1000;
    }


    public String addos() {
        String[] OS = {"Android","iOS"};
        return OS[rd.nextInt(OS.length)];
    }


    public String addos_version() {
        String[] OS_V = {"Android版本","iOS版本"};
        return OS_V[rd.nextInt(OS_V.length)];
    }


    public String addpackage_name() {
        String[] PAC = {"Android：com.kmxs.reader","iOS：com.yueyou.cyreader"};
        return PAC[rd.nextInt(PAC.length)];
    }


    public String addproject() {
        String[] PRO = {"Android：reader_free","iOS:reader_free_ios"};
        return PRO[rd.nextInt(PRO.length)];
    }


    public String addresolution() {
        String[] RES = {"720p(720×1280)","1080p(1080×1920)","2k(2560×1440)"};
        return RES[rd.nextInt(RES.length)];
    }
}
